package com.groupbuying.store.service.forManage;

import com.groupbuying.store.utils.Query;
import com.groupbuying.store.utils.R;
import com.groupbuying.store.domain.forManage.StoreRoleDO;
import com.groupbuying.store.dto.forManage.AccountRoleDTO;
import org.springframework.web.bind.annotation.RequestBody;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

/**
 * 角色
 * 
 * @author yuwenxiaodong
 * @email yuwenxiaodong@126.com
 * @date 2019-03-22 11:55:07
 */
public interface StoreRoleService {

	StoreRoleDO get(BigInteger id);

	List<StoreRoleDO> list(Map<String, Object> map);

	int count(Map<String, Object> map);

	R internal_saveStoreRole(StoreRoleDO role);

	int update(StoreRoleDO role);

	int remove(BigInteger id);

	List<AccountRoleDTO> list(String userId);

	int batchremove(String[] ids);

	/**
	 * 获取用户的角色id
	 * @param userId
	 * @return 角色id
	 */
	List<BigInteger> roleIdsByUserId(String userId);

	R addMenuForAdmin(Map<String, Object> params);

    List<StoreRoleDO> listLike(Map<String, Object> map);

    int countLike(Map<String, Object> map);
}
